<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>AssemblyScript 中文文档 | AssemblyScript 中文网</title>
    <meta name="generator" content="VuePress 1.8.2">
    <link rel="apple-touch-icon" sizes="180x180" href="https://assemblyscript.bootcss.com/favicons/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="https://assemblyscript.bootcss.com/favicons/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="https://assemblyscript.bootcss.com/favicons/favicon-16x16.png">
    <link rel="manifest" href="https://assemblyscript.bootcss.com/site.webmanifest">
    <link rel="mask-icon" href="https://assemblyscript.bootcss.com/favicons/safari-pinned-tab.svg" color="#007acc">
    <link rel="shortcut icon" href="https://assemblyscript.bootcss.com/favicon.ico">
    <link rel="preconnect" href="https://cdn.jsdelivr.net/">
    <meta name="description" content="Definitely not a TypeScript to WebAssembly compiler 🚀">
    <meta name="msapplication-TileColor" content="#ffffff">
    <meta name="msapplication-config" content="/browserconfig.xml">
    <meta name="theme-color" content="#ffffff">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <link rel="preload" href="static/css/0.styles.b1ea5b31.css" as="style"><link rel="preload" href="https://assemblyscript.bootcss.com/assets/js/app.d9b97977.js" as="script"><link rel="preload" href="https://assemblyscript.bootcss.com/assets/js/4.2c0643ad.js" as="script"><link rel="preload" href="https://assemblyscript.bootcss.com/assets/js/3.5ce27dc9.js" as="script"><link rel="preload" href="https://assemblyscript.bootcss.com/assets/js/6.4d01bde7.js" as="script"><link rel="preload" href="https://assemblyscript.bootcss.com/assets/js/7.84757046.js" as="script"><link rel="preload" href="https://assemblyscript.bootcss.com/assets/js/8.5704121c.js" as="script"><link rel="preload" href="https://assemblyscript.bootcss.com/assets/js/5.727ad2ce.js" as="script"><link rel="preload" href="https://assemblyscript.bootcss.com/assets/js/12.dee0e02e.js" as="script"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/10.7233805a.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/11.95a4ae24.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/13.1f2af9e7.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/14.a9753205.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/15.bf3cb228.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/16.7867a782.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/17.2573de65.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/18.7ba31ed7.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/19.26f42a24.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/20.03fa2192.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/21.676bf676.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/22.d9e4c3fd.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/23.2ffbaf76.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/24.d8bcb436.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/25.38be00f3.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/26.7f120547.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/27.5438d5d7.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/28.b898c080.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/29.57afac29.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/30.463672ec.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/31.66e272a1.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/32.6af3e374.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/33.a4a52cf5.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/34.e7294b18.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/35.6da8c72f.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/36.93ee6a2d.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/37.16660207.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/38.c2398d68.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/39.9b89ec84.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/40.ca857108.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/41.42c3f6f9.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/42.8d2b5bdf.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/43.5a6cbb5f.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/44.75593b65.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/45.70aa042c.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/46.c7a7d80e.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/47.39a6f35d.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/48.c583ec81.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/49.64886163.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/50.fa642d33.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/51.ef3f9ed1.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/52.37f910e8.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/53.6df46791.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/54.f0db8b31.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/55.e0f27e33.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/56.0aa59689.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/57.2829d2f4.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/58.8aeb064e.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/59.38441f9c.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/60.e209877f.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/61.7d0d1041.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/62.24716851.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/63.62d29a4f.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/9.b97e73d5.js"><link rel="prefetch" href="https://assemblyscript.bootcss.com/assets/js/vendors~docsearch.7912142d.js">
    <link rel="stylesheet" href="static/css/0.styles.b1ea5b31.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container no-navbar no-sidebar frontpage" data-v-8ef39a8a=""><!----> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="javascript:;" class="nav-link">
  Documentation
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Standard library" class="dropdown-title"><span class="title">Standard library</span> <span class="arrow down"></span></button> <button type="button" aria-label="Standard library" class="mobile-dropdown-title"><span class="title">Standard library</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="javascript:;" class="nav-link">
  Globals
</a></li><li class="dropdown-item"><!----> <a href="javascript:;" class="nav-link">
  Array
</a></li><li class="dropdown-item"><!----> <a href="javascript:;" class="nav-link">
  ArrayBuffer
</a></li><li class="dropdown-item"><!----> <a href="javascript:;" class="nav-link">
  DataView
</a></li><li class="dropdown-item"><!----> <a href="javascript:;" class="nav-link">
  Date
</a></li><li class="dropdown-item"><!----> <a href="javascript:;" class="nav-link">
  Error
</a></li><li class="dropdown-item"><!----> <a href="javascript:;" class="nav-link">
  Map
</a></li><li class="dropdown-item"><!----> <a href="javascript:;" class="nav-link">
  Math
</a></li><li class="dropdown-item"><!----> <a href="javascript:;" class="nav-link">
  Number
</a></li><li class="dropdown-item"><!----> <a href="javascript:;" class="nav-link">
  Set
</a></li><li class="dropdown-item"><!----> <a href="javascript:;" class="nav-link">
  String
</a></li><li class="dropdown-item"><!----> <a href="javascript:;" class="nav-link">
  Symbol
</a></li><li class="dropdown-item"><!----> <a href="javascript:;" class="nav-link">
  TypedArray
</a></li><li class="dropdown-item"><h4>
          Extended
        </h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="javascript:;" class="nav-link">
  StaticArray
</a></li><li class="dropdown-subitem"><a href="javascript:;" class="nav-link">
  process
</a></li><li class="dropdown-subitem"><a href="javascript:;" class="nav-link">
  console
</a></li><li class="dropdown-subitem"><a href="javascript:;" class="nav-link">
  crypto
</a></li></ul></li></ul></div></div><div class="nav-item"><a href="javascript:;" class="nav-link">
  Examples
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Community" class="dropdown-title"><span class="title">Community</span> <span class="arrow down"></span></button> <button type="button" aria-label="Community" class="mobile-dropdown-title"><span class="title">Community</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="javascript:;" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Contributing guidelines
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="javascript:;" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Code of Conduct
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><h4>
          Groups
        </h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="javascript:;" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Community Group
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-subitem"><a href="javascript:;" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Working Group
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></li><li class="dropdown-item"><h4>
          Social
        </h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="javascript:;" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Twitter
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-subitem"><a href="javascript:;" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Discord
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></li><li class="dropdown-item"><h4>
          Q&amp;A
        </h4> <ul class="dropdown-subitem-wrapper"><li class="dropdown-subitem"><a href="javascript:;" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Stack Overflow
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></li></ul></div></div><div class="nav-item"><a href="javascript:;" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Support us
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="javascript:;" target="_blank" rel="noopener noreferrer" class="nav-link external">
  GitHub
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewbox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>Getting started</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="javascript:;" class="sidebar-link">Introduction</a></li><li><a href="javascript:;" class="sidebar-link">Quick Start</a></li><li><a href="javascript:;" class="sidebar-link">Basics</a></li><li><a href="javascript:;" class="sidebar-link">Status</a></li><li><a href="javascript:;" class="sidebar-link">Frequently asked questions</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Documentation</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="javascript:;" class="sidebar-link">Compiler</a></li><li><a href="javascript:;" class="sidebar-link">Types</a></li><li><a href="javascript:;" class="sidebar-link">Environment</a></li><li><a href="javascript:;" class="sidebar-link">Exports and imports</a></li><li><a href="javascript:;" class="sidebar-link">Loader</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Advanced</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="javascript:;" class="sidebar-link">Memory</a></li><li><a href="javascript:;" class="sidebar-link">Garbage Collection</a></li><li><a href="javascript:;" class="sidebar-link">Peculiarities</a></li><li><a href="javascript:;" class="sidebar-link">Portability</a></li><li><a href="javascript:;" class="sidebar-link">Debugging</a></li><li><a href="javascript:;" class="sidebar-link">Interoperability</a></li><li><a href="javascript:;" class="sidebar-link">Development</a></li><li><a href="javascript:;" class="sidebar-link">Transforms</a></li></ul></section></li></ul> </aside> <main class="page" data-v-d1fc1622=""> <div class="theme-default-content content__default" data-v-1235c94b="" data-v-1235c94b="" data-v-d1fc1622=""><div id="hero" data-v-1235c94b=""><img src="static/picture/assemblyscript-logo.png" alt="AssemblyScript logo" style="display:none;" data-v-1235c94b=""> <div id="logo" data-v-1235c94b=""><svg viewbox="0 0 768 256" data-v-1235c94b=""><path d="M239.972.004a168.23 168.23 0 00-33.502 3.339 163.17 163.17 0 00-31.722 9.684 169.571 169.571 0 00-29.385 15.693c-9.275 6.159-17.919 13.246-25.933 21.26L89.378 80.032H41.405L1.336 119.99l28.382 28.383-9.127 27.269c-5.12 5.713-9.089 11.576-11.909 17.586a87.137 87.137 0 00-6.121 18.81C1.299 218.644.557 225.582.334 232.854A759.765 759.765 0 000 256.004h16.028c6.01 0 11.873-.297 17.586-.891a93.642 93.642 0 0016.584-3.227 76.878 76.878 0 0015.694-6.233c5.046-2.671 9.87-6.085 14.47-10.24l27.27-9.127 28.382 28.382c6.333-7.12 6.333-16.517.012-22.776l-25.708-25.49-16.892 5.315-49.288-49.368 5.107-17.02-25.203-25.34 23.93-23.929 47.495.183 35.316-35.022a152.05 152.05 0 0117.03-14.692 161.081 161.081 0 0119.144-12.243c3.024-1.707 3.964-2.176 7.569-3.673 10.24-4.897 20.85-8.533 31.832-10.908a154.989 154.989 0 0133.614-3.673c0 11.353-1.224 22.52-3.673 33.502-2.448 10.982-6.085 21.63-10.908 31.945-1.384 3.247-1.853 4.187-3.673 7.568-1.818 3.34-5.664 9.548-5.664 9.548 14.385 1.764 27.298-18.366 31.546-29.71 2.326-6.241 3.765-12.78 5.061-19.35a168.234 168.234 0 003.34-33.503V.004zM37.51 181.541l8.46 8.46c-2.45 2.373-4.527 4.86-6.234 7.457a47.432 47.432 0 00-4.119 8.236 56.942 56.942 0 00-2.447 8.793c-.52 3.042-.929 6.234-1.226 9.573 3.34-.297 6.53-.742 9.572-1.336a44.096 44.096 0 008.794-2.45 38.85 38.85 0 008.236-4.117c2.597-1.632 5.083-3.674 7.457-6.122l8.46 8.459c-3.487 4.452-7.494 8.051-12.02 10.797a60.64 60.64 0 01-14.47 6.567 75.691 75.691 0 01-15.917 3.228 146.96 146.96 0 01-16.028.89c0-5.269.26-10.648.78-16.14a86.584 86.584 0 013.227-15.804 67.096 67.096 0 016.567-14.47c2.82-4.526 6.456-8.534 10.908-12.021z" data-v-1235c94b=""></path><path d="M207.866 193.652H198.4l-7.735-20.458h-30.942l-7.277 20.458h-9.517l27.99-72.977h8.855zm-20-28.143l-11.45-31.094q-.56-1.526-1.12-4.885h-.204q-.509 3.104-1.17 4.885l-11.349 31.094zm22.417 26.26v-8.957q6.82 5.038 15.013 5.038 10.992 0 10.992-7.328 0-2.087-.967-3.511-.916-1.476-2.544-2.596-1.578-1.12-3.766-1.985-2.138-.916-4.631-1.883-3.46-1.374-6.107-2.748-2.596-1.425-4.377-3.155-1.73-1.781-2.646-4.02-.865-2.24-.865-5.242 0-3.664 1.68-6.463 1.679-2.85 4.478-4.733 2.799-1.934 6.36-2.9 3.614-.967 7.43-.967 6.77 0 12.113 2.34v8.448q-5.75-3.766-13.232-3.766-2.34 0-4.224.56-1.883.51-3.257 1.476-1.323.967-2.086 2.341-.713 1.323-.713 2.952 0 2.035.713 3.41.763 1.373 2.188 2.442 1.425 1.069 3.46 1.934 2.036.865 4.632 1.883 3.46 1.323 6.208 2.748 2.749 1.374 4.682 3.155 1.934 1.73 2.952 4.02 1.069 2.29 1.069 5.446 0 3.867-1.73 6.717-1.68 2.85-4.53 4.733-2.85 1.883-6.565 2.8-3.715.915-7.786.915-8.04 0-13.944-3.104zm40.178 0v-8.957q6.82 5.038 15.013 5.038 10.992 0 10.992-7.328 0-2.087-.967-3.511-.916-1.476-2.544-2.596-1.578-1.12-3.766-1.985-2.137-.916-4.631-1.883-3.46-1.374-6.107-2.748-2.595-1.425-4.376-3.155-1.73-1.781-2.647-4.02-.865-2.24-.865-5.242 0-3.664 1.68-6.463 1.679-2.85 4.478-4.733 2.799-1.934 6.361-2.9 3.613-.967 7.43-.967 6.769 0 12.112 2.34v8.448q-5.75-3.766-13.231-3.766-2.341 0-4.224.56-1.883.51-3.257 1.476-1.324.967-2.087 2.341-.712 1.323-.712 2.952 0 2.035.712 3.41.763 1.373 2.188 2.442 1.425 1.069 3.461 1.934 2.036.865 4.631 1.883 3.46 1.323 6.209 2.748 2.748 1.374 4.682 3.155 1.933 1.73 2.951 4.02 1.069 2.29 1.069 5.446 0 3.867-1.73 6.717-1.68 2.85-4.53 4.733-2.85 1.883-6.565 2.8-3.715.915-7.786.915-8.04 0-13.944-3.104zm85.216-22.087h-36.793q.203 8.703 4.682 13.435 4.478 4.733 12.315 4.733 8.804 0 16.183-5.801v7.837q-6.87 4.987-18.168 4.987-11.043 0-17.353-7.074-6.31-7.124-6.31-20 0-12.162 6.87-19.796 6.92-7.684 17.15-7.684 10.229 0 15.827 6.615 5.597 6.616 5.597 18.372zm-8.55-7.073q-.05-7.227-3.51-11.247-3.41-4.02-9.517-4.02-5.903 0-10.025 4.223-4.123 4.224-5.09 11.044zm91.223 31.043h-8.347v-29.924q0-8.651-2.697-12.519-2.646-3.868-8.957-3.868-5.343 0-9.11 4.886-3.714 4.885-3.714 11.705v29.72h-8.346V162.71q0-15.369-11.858-15.369-5.496 0-9.058 4.631-3.562 4.58-3.562 11.96v29.72h-8.346V141.54h8.346v8.244h.203q5.547-9.465 16.183-9.465 5.344 0 9.313 3.002 3.97 2.952 5.445 7.786 5.802-10.788 17.303-10.788 17.201 0 17.201 21.22zm20.33-7.532h-.203v7.532h-8.346v-77.15h8.346V150.7h.203q6.158-10.381 18.015-10.381 10.026 0 15.675 7.022 5.7 6.972 5.7 18.728 0 13.079-6.362 20.967-6.361 7.837-17.405 7.837-10.33 0-15.623-8.753zm-.203-21.018v7.278q0 6.463 4.173 10.992 4.223 4.478 10.687 4.478 7.582 0 11.857-5.801 4.326-5.802 4.326-16.133 0-8.702-4.02-13.638-4.021-4.937-10.891-4.937-7.278 0-11.705 5.09-4.427 5.038-4.427 12.671zm57.277 28.55h-8.346v-77.15h8.346zm54.376-52.112l-23.969 60.458q-6.412 16.183-18.015 16.183-3.257 0-5.445-.662v-7.48q2.697.915 4.936.915 6.31 0 9.466-7.531l4.173-9.873-20.357-52.01h9.263l14.096 40.102q.255.763 1.069 3.969h.305q.255-1.221 1.018-3.868l14.81-40.203zM553.77 191.056v-5.75q7.837 4.987 15.877 4.987 8.55 0 12.977-3.511 4.428-3.563 4.428-9.924 0-5.598-3.003-8.906-2.951-3.359-12.875-9.11-11.094-6.462-14.046-10.788-2.951-4.377-2.951-10.076 0-7.736 6.005-13.13 6.005-5.394 16.03-5.394 6.514 0 13.028 2.188v5.292q-6.412-2.9-13.69-2.9-7.43 0-11.806 3.766-4.326 3.765-4.326 9.567 0 5.598 2.952 8.906 3.002 3.308 12.875 9.007 10.23 5.802 13.588 10.331 3.41 4.478 3.41 10.33 0 8.398-5.853 13.69-5.801 5.293-16.437 5.293-3.766 0-8.703-1.17-4.885-1.171-7.48-2.698zm82.926.306q-5.802 3.562-13.843 3.562-10.636 0-17.15-7.277-6.514-7.329-6.514-19.135 0-12.417 7.329-20.305 7.328-7.94 18.829-7.94 5.954 0 11.552 2.443v5.293q-5.598-3.46-12.265-3.46-9.16 0-14.86 6.615-5.7 6.565-5.7 17.049 0 10.127 5.192 16.284 5.241 6.158 13.79 6.158 7.838 0 13.64-4.173zm33.054-44.937q-2.342-1.679-5.497-1.679-6.158 0-10.33 6.361-4.174 6.362-4.174 18.066v24.479h-4.58V141.54h4.58v11.552h.204q1.78-5.954 5.649-9.262 3.867-3.308 8.956-3.308 2.901 0 5.191.916zm8.116-18.015q-1.526 0-2.697-1.12-1.17-1.119-1.17-2.85 0-1.679 1.17-2.696 1.221-1.07 2.697-1.07 1.578 0 2.748 1.019 1.222 1.018 1.222 2.748 0 1.628-1.17 2.799-1.171 1.17-2.8 1.17zm-2.29 65.242V141.54h4.682v52.112zm22.265-9.262h-.204v33.231h-4.681V141.54h4.681v10.738h.204q2.799-5.75 7.99-8.855 5.242-3.155 11.501-3.155 9.924 0 15.47 6.87 5.599 6.82 5.599 18.575 0 13.079-6.413 21.17-6.36 8.041-16.844 8.041-11.705 0-17.303-10.534zm-.204-19.39v6.565q0 7.837 4.937 13.486 4.936 5.598 12.977 5.598 7.99 0 12.977-6.82 4.987-6.87 4.987-18.014 0-9.771-4.58-15.522-4.58-5.75-12.214-5.75-9.109 0-14.096 6.106-4.988 6.107-4.988 14.351zm70.357 27.94q-3.664 1.73-6.87 1.73-11.553 0-11.553-13.843v-35.012h-9.363v-4.275h9.363v-13.537q1.12-.407 2.341-.814 1.222-.356 2.341-.763v15.114h13.74v4.275h-13.74v34.402q0 5.394 1.68 7.837 1.73 2.392 5.801 2.392 2.9 0 6.26-1.883z" data-v-1235c94b=""></path></svg></div> <h1 data-v-1235c94b="">A language made for WebAssembly.</h1> <p class="action" data-v-1235c94b=""><a href="javascript:;" class="docs" data-v-1235c94b=""><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 256 256" data-v-1235c94b=""><path d="M0 0v256h256V0h-98.4c0 15-11.1 30-29.4 30A29.5 29.5 0 0198.5 0z" fill="#007acc" data-v-1235c94b=""></path><path d="M100.35 117.107h2.025l52.506 115.818h-24.818l-5.402-13H78.063l-5.402 13H49.869zm15.87 83.065l-8.274-19.922q-1.35-3.377-2.532-6.753-1.182-3.377-2.195-6.585-1.182-3.714-2.195-7.26-1.181 4.222-2.194 7.43-1.013 3.207-2.195 6.921-1.182 3.546-2.364 6.247l-8.273 19.922zm79.306 34.273q-8.273 0-15.026-1.857-6.753-1.858-12.156-5.065-5.402-3.208-9.454-7.598-3.883-4.558-6.416-9.623l19.247-11.143q3.883 6.247 9.117 10.299 5.402 4.052 14.181 4.052 7.429 0 11.65-3.208 4.39-3.377 4.39-8.442 0-6.077-4.56-9.116-4.558-3.04-12.661-6.585l-5.91-2.532q-6.415-2.702-11.649-5.91-5.234-3.207-8.948-7.428-3.714-4.22-5.74-9.623-2.026-5.403-2.026-12.663 0-6.584 2.364-12.324 2.532-5.74 6.922-9.961 4.558-4.22 10.974-6.585 6.415-2.363 14.35-2.363 11.312 0 19.416 4.39 8.272 4.22 14.182 14.519l-18.403 11.818q-3.039-5.403-6.584-7.766-3.546-2.364-8.61-2.364-5.234 0-8.273 2.87-3.04 2.87-3.04 7.26 0 5.403 3.377 8.273 3.546 2.701 11.143 6.078l5.91 2.532q7.596 3.208 13.337 6.753 5.909 3.377 9.792 7.766 4.052 4.221 6.078 9.793 2.195 5.402 2.195 12.83 0 7.936-3.04 14.183-2.87 6.077-8.103 10.298-5.234 4.221-12.494 6.416-7.09 2.026-15.532 2.026z" fill="#fff" data-v-1235c94b=""></path></svg>
      Get Started
    </a> <a href="javascript:;" target="_blank" rel="noopener" class="github" data-v-1235c94b=""><svg viewbox="0 0 24 24" data-v-1235c94b=""><path fill="#fff" d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" data-v-1235c94b=""></path></svg> <span class="title" data-v-1235c94b="">GitHub</span></a> <a href="javascript:;" target="_blank" rel="noopener" class="npm" data-v-1235c94b=""><svg viewbox="0 0 24 24" data-v-1235c94b=""><path fill="#fff" d="M2 22h9.913V7.043h5.044V22H22V2H2z" data-v-1235c94b=""></path></svg> <span class="title" data-v-1235c94b="">npm</span></a></p></div> <div id="features" data-v-1235c94b=""><div class="feature" data-v-1235c94b=""><h2 data-v-1235c94b="">Designed for WebAssembly</h2> <p data-v-1235c94b="">AssemblyScript targets WebAssembly's feature set specifically, giving developers low-level control over their code.</p></div> <div class="feature" data-v-1235c94b=""><h2 data-v-1235c94b="">Familiar TypeScript syntax</h2> <p data-v-1235c94b="">Being a variant of TypeScript makes it easy to compile to WebAssembly without learning a new language.</p></div> <div class="feature" data-v-1235c94b=""><h2 data-v-1235c94b="">Right at your fingertips</h2> <p data-v-1235c94b="">Integrates with the existing Web ecosystem - no heavy toolchains to set up. Simply <code data-v-1235c94b="">npm install</code> it!</p></div></div> <div id="try" data-v-1235c94b=""><div class="language-editor extra-class" data-v-1235c94b=""><pre class="language-text" data-v-1235c94b=""><code data-v-1235c94b="">#!runtime=stub
/** Calculates the n-th Fibonacci number. */
export function fib(n: i32): i32 {
  var a = 0, b = 1
  if (n &gt; 0) {
    while (--n) {
      let t = a + b
      a = b
      b = t
    }
    return b
  }
  return a
}

#!html
&lt;textarea id=&quot;output&quot; style=&quot;height: 100%; width: 100%&quot; readonly&gt;&lt;/textarea&gt;
&lt;script&gt;
loader.instantiate(module_wasm, { /* imports */ })
  .then(({ exports }) =&gt; {
    const output = document.getElementById('output')
    for (let i = 0; i &lt;= 10; ++i) {
      output.value += `fib(${i}) = ${exports.fib(i)}\n`
    }
  })
&lt;/script&gt;
</code></pre></div></div> <div id="contributors" data-v-1235c94b=""><p data-v-1235c94b="">AssemblyScript is free and open source software released under the <a href="javascript:;" target="_blank" rel="noopener" data-v-1235c94b="">Apache License, Version 2.0</a>, builds upon <a href="javascript:;" target="_blank" rel="noopener" data-v-1235c94b="">Binaryen</a> and is based on the <a href="javascript:;" target="_blank" rel="noopener" data-v-1235c94b="">WebAssembly specification</a>. It is brought to you by the following awesome people:</p> <div class="contributors" data-v-31cd9d1c="" data-v-1235c94b=""><h3 data-v-31cd9d1c="">Contributors</h3> <div class="list" data-v-31cd9d1c=""><a href="javascript:;" title="879 contributions by dcodeIO" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/1136893.jpg" alt="dcodeIO" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="243 contributions by MaxGraey" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/1301959.jpg" alt="MaxGraey" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="27 contributions by jtenner" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/3761339.jpg" alt="jtenner" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="26 contributions by willemneal" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/1483244.jpg" alt="willemneal" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="24 contributions by torch2424" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/1448289.jpg" alt="torch2424" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="8 contributions by saulecabrera" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/1423601.jpg" alt="saulecabrera" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="8 contributions by nearmax" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/35039879.jpg" alt="nearmax" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="7 contributions by DuncanUszkay1" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/8670351.jpg" alt="DuncanUszkay1" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="6 contributions by LiaoPeng" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/4305499.jpg" alt="LiaoPeng" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="5 contributions by alangpierce" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/211605.jpg" alt="alangpierce" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="4 contributions by nidin" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/198246.jpg" alt="nidin" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="4 contributions by surma" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/234957.jpg" alt="surma" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="4 contributions by yjhmelody" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/16250688.jpg" alt="yjhmelody" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="3 contributions by LinusU" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/189580.jpg" alt="LinusU" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="3 contributions by ghalimi" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/1074452.jpg" alt="ghalimi" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="3 contributions by ColinEberhardt" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/1098110.jpg" alt="ColinEberhardt" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="3 contributions by andy-hanson" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/5387404.jpg" alt="andy-hanson" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="3 contributions by forcepusher" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/5948501.jpg" alt="forcepusher" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="2 contributions by kazupon" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/72989.jpg" alt="kazupon" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="2 contributions by jayphelps" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/762949.jpg" alt="jayphelps" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="2 contributions by gzuidhof" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/1039510.jpg" alt="gzuidhof" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="2 contributions by FloorLamp" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/1502552.jpg" alt="FloorLamp" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="2 contributions by PinkaminaDianePie" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/1625500.jpg" alt="PinkaminaDianePie" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="2 contributions by sidx1024" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/11299391.jpg" alt="sidx1024" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="2 contributions by bowenwang1996" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/13601726.jpg" alt="bowenwang1996" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by phamann" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/80089.jpg" alt="phamann" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by Stefie" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/125398.jpg" alt="Stefie" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by jeffcharles" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/154890.jpg" alt="jeffcharles" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by syrusakbary" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/188257.jpg" alt="syrusakbary" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by fcrick" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/283047.jpg" alt="fcrick" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by chances" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/635049.jpg" alt="chances" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by sebastienros" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/1165805.jpg" alt="sebastienros" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by ggreif" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/1312006.jpg" alt="ggreif" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by atcwells" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/1589804.jpg" alt="atcwells" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by ErnestoBorio" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/1771719.jpg" alt="ErnestoBorio" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by RehkitzDev" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/4146348.jpg" alt="RehkitzDev" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by sunfishcode" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/4503403.jpg" alt="sunfishcode" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by bnbarak" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/6034194.jpg" alt="bnbarak" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by pulpdrew" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/6097246.jpg" alt="pulpdrew" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by emlai" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/7543552.jpg" alt="emlai" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by synote" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/8080329.jpg" alt="synote" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by samchon" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/13158709.jpg" alt="samchon" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by nischayv" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/13353147.jpg" alt="nischayv" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by Wscats" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/17243165.jpg" alt="Wscats" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by jins-tkomoda" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/19419464.jpg" alt="jins-tkomoda" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by rottencandy" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/20013884.jpg" alt="rottencandy" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by jensschaefer" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/33423024.jpg" alt="jensschaefer" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by EqualMa" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/34654503.jpg" alt="EqualMa" loading="lazy" data-v-31cd9d1c=""></a><a href="javascript:;" title="1 contribution by Nsikak1" target="_blank" rel="noopener" data-v-31cd9d1c=""><img src="static/picture/37031126.jpg" alt="Nsikak1" loading="lazy" data-v-31cd9d1c=""></a></div></div></div> <div id="testimonials" data-v-1235c94b=""><h2 data-v-1235c94b="">Why AssemblyScript?</h2> <div class="testimonials" data-v-72149652="" data-v-1235c94b=""><div class="testimonial" data-v-72149652=""><img src="static/picture/Surma.png" alt="Surma" class="logo" data-v-72149652=""> <p data-v-72149652="">“You are now able to write WebAssembly without learning a new language, and harness all these benefits WebAssembly might offer you. I think that is kind of powerful. AssemblyScript is absolutely usable, and very enjoyable!” – <strong data-v-72149652="">Surma</strong>, <a href="javascript:;" target="_blank" rel="noopener" data-v-72149652="">WebAssembly for Web Developers (Google I/O ’19)</a></p></div><div class="testimonial" data-v-72149652=""><img src="static/picture/Alon_Zakai.png" alt="Alon Zakai" class="logo" data-v-72149652=""> <p data-v-72149652="">“AssemblyScript is designed with WebAssembly and code size in mind. It's not an existing language that we are using for a new purpose but it's a language designed for WebAssembly. It has great wasm-opt integration, in fact it's built with it, and it's very easy to get good code size.” – <strong data-v-72149652="">Alon Zakai</strong>, <a href="javascript:;" target="_blank" rel="noopener" data-v-72149652="">Shipping Tiny WebAssembly Builds (WebAssembly Summit)</a></p></div><div class="testimonial" data-v-72149652=""><img src="static/picture/Peter_Salomonsen.png" alt="Peter Salomonsen" class="logo" data-v-72149652=""> <p data-v-72149652="">“I chose AssemblyScript because it has high-level readability and low-level control. It's like a high-level language but you get that low-level feeling and you can even directly write WebAssembly intrinsics if you want to.” – <strong data-v-72149652="">Peter Salomonsen</strong>, <a href="javascript:;" target="_blank" rel="noopener" data-v-72149652="">WebAssembly Music (WebAssembly Summit)</a></p></div></div></div> <div id="sponsors" data-v-1235c94b=""><h2 data-v-1235c94b="">Thanks to our sponsors!</h2> <p data-v-1235c94b="">Most of the core team members and most contributors do this open source work in their free time. If you use AssemblyScript for a serious task or plan to do so, and you'd like us to invest more time on it, <a href="javascript:;" target="_blank" rel="noopener" data-v-1235c94b="">please donate</a> to our <a href="javascript:;" target="_blank" rel="noopener" data-v-1235c94b="">OpenCollective</a>. By sponsoring this project, your logo will show up below. Thank you so much for your support!</p> <div class="sponsors" data-v-7f9b29e8="" data-v-1235c94b=""><div class="platinum" data-v-7f9b29e8=""><h3 data-v-7f9b29e8="">Platinum Sponsors</h3> <div class="list" data-v-7f9b29e8=""><a href="javascript:;" title="$54,000 by NEAR Protocol" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/nearprotocol.svg" alt="NEAR Protocol" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$54,000 by Fastly" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/fastly.svg" alt="Fastly" loading="lazy" data-v-7f9b29e8=""></a></div></div> <div class="gold" data-v-7f9b29e8=""><h3 data-v-7f9b29e8="">Gold Sponsors</h3> <div class="list" data-v-7f9b29e8=""><a href="javascript:;" title="$25,000 by Shopify" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/shopify.svg" alt="Shopify" loading="lazy" data-v-7f9b29e8=""></a></div></div> <div class="silver" data-v-7f9b29e8=""><h3 data-v-7f9b29e8="">Silver Sponsors</h3> <div class="list" data-v-7f9b29e8=""><a href="javascript:;" title="$6,000 by The Graph" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/graphprotocol.svg" alt="The Graph" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$4,800 by ChainSafe Systems" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/chainsafeth.svg" alt="ChainSafe Systems" loading="lazy" data-v-7f9b29e8=""></a></div></div> <div class="bronze" data-v-7f9b29e8=""><h3 data-v-7f9b29e8="">Bronze Sponsors</h3> <div class="list" data-v-7f9b29e8=""><a href="javascript:;" title="$1,100 by Ryan Zurrer" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/72.jpg" alt="Ryan Zurrer" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$800 by Aaron Turner" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/721.jpg" alt="Aaron Turner" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$800 by STOIC" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/722.jpg" alt="STOIC" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$425 by Triplebyte" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/723.jpg" alt="Triplebyte" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$310 by Alon Zakai" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/724.jpg" alt="Alon Zakai" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$260 by Sean Jensen Grey" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/725.jpg" alt="Sean Jensen Grey" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$250 by n8n.io - n8n GmbH" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/726.jpg" alt="n8n.io - n8n GmbH" loading="lazy" data-v-7f9b29e8=""></a></div></div> <div class="backer" data-v-7f9b29e8=""><h3 data-v-7f9b29e8="">Individual Backers</h3> <div class="list" data-v-7f9b29e8=""><a href="javascript:;" title="$145 by Nidin Vinayakan" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/64.jpg" alt="Nidin Vinayakan" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$140 by Surma" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/641.jpg" alt="Surma" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$105 by Stefanie Doll" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/642.jpg" alt="Stefanie Doll" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$100 by Jordan Timmerman" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/643.jpg" alt="Jordan Timmerman" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$85 by Duncan Dean" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/644.jpg" alt="Duncan Dean" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$75 by Forrest Moret" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/645.jpg" alt="Forrest Moret" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$75 by Jacob Richards" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/646.jpg" alt="Jacob Richards" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$75 by Charlie Arnold" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/647.jpg" alt="Charlie Arnold" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$75 by Simon Cheng" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/648.jpg" alt="Simon Cheng" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$55 by Felix Leupold" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/649.jpg" alt="Felix Leupold" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$50 by Taylor Clark" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6410.jpg" alt="Taylor Clark" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$50 by RajBet" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6411.jpg" alt="RajBet" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$50 by Florian Rival" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6412.jpg" alt="Florian Rival" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$45 by Julien Letellier" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6413.jpg" alt="Julien Letellier" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$45 by 日本カジノNET" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6414.jpg" alt="日本カジノNET" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$30 by Deal Empire" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6415.jpg" alt="Deal Empire" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$30 by My Sports Injury Ltd" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6416.jpg" alt="My Sports Injury Ltd" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$25 by DLL" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6417.jpg" alt="DLL" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$25 by Ставки на спорт" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6418.jpg" alt="Ставки на спорт" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$20 by takanori sugawara" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6419.jpg" alt="takanori sugawara" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$15 by Bao casino Canada" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6420.jpg" alt="Bao casino Canada" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$14 by Harry Solovay" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6421.jpg" alt="Harry Solovay" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$10 by Jonathan Beri" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6422.jpg" alt="Jonathan Beri" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$10 by Jack Arrington" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6423.jpg" alt="Jack Arrington" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$10 by Онлайн казино СлотоКінг" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6424.jpg" alt="Онлайн казино СлотоКінг" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$10 by Logical Phase Systems" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6425.jpg" alt="Logical Phase Systems" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$5 by Ezra Savard" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6426.jpg" alt="Ezra Savard" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$5 by incognito" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6427.jpg" alt="incognito" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$5 by Julius Shapiro" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6428.jpg" alt="Julius Shapiro" loading="lazy" data-v-7f9b29e8=""></a><a href="javascript:;" title="$5 by Игровые автоматы 777 Originals" target="_blank" rel="noopener" data-v-7f9b29e8=""><img src="static/picture/6429.jpg" alt="Игровые автоматы 777 Originals" loading="lazy" data-v-7f9b29e8=""></a></div></div></div></div> <div id="community" data-v-1235c94b=""><h2 data-v-1235c94b=""><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 245 240" data-v-1235c94b=""><path d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zM140.9 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z" data-v-1235c94b=""></path><path d="M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z" class="st0" data-v-1235c94b=""></path></svg> Join our Discord</h2> <p data-v-1235c94b="">If you have questions only a human can answer, would like to show others what you are working on or just want to hang out with other AssemblyScript folks, make sure to <a href="javascript:;" target="_blank" rel="noopener" data-v-1235c94b="">join our Discord server</a>! There you'll find channels for <strong data-v-1235c94b="">#announcements</strong>, <strong data-v-1235c94b="">#help</strong>, and more.</p> <!----></div></div> <footer class="page-edit" data-v-d1fc1622=""><!----> <!----></footer> <!----> <div class="footer" data-v-d1fc1622="" data-v-8ef39a8a=""><p data-v-d1fc1622="" data-v-8ef39a8a=""><span class="item" data-v-d1fc1622="" data-v-8ef39a8a="">Apache-2.0 licensed</span>,
      <span class="item" data-v-d1fc1622="" data-v-8ef39a8a="">Copyright © 2021</span> <span class="item" data-v-d1fc1622="" data-v-8ef39a8a="">The AssemblyScript Project</span></p></div></main></div><div class="global-ui"></div></div>
    <script src="static/js/app.d9b97977.js" defer=""></script><script src="static/js/4.2c0643ad.js" defer=""></script><script src="static/js/3.5ce27dc9.js" defer=""></script><script src="static/js/6.4d01bde7.js" defer=""></script><script src="static/js/7.84757046.js" defer=""></script><script src="static/js/8.5704121c.js" defer=""></script><script src="static/js/5.727ad2ce.js" defer=""></script><script src="static/js/12.dee0e02e.js" defer=""></script>
  </body>
</html>
